local xiaoshou = fk.CreateSkill {
  name = "th_xiaoshou",
  tags = { Skill.Compulsory },
}

xiaoshou:addEffect(fk.Damage, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(xiaoshou.name) and target == player and player:getHandcardNum() <= (player.hp * 2)
  end,
  trigger_times = function(self, event, target, player, data)
    return data.damage
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(1, xiaoshou.name)
  end
})

Fk:loadTranslationTable{
  ["th_xiaoshou"] = "枭首",
  [":th_xiaoshou"] = "锁定技，你造成1点伤害后，若你的手牌数不大于你体力值的两倍，你摸一张牌。",
}

return xiaoshou